package top.yudoge.dogeeditorserverj.transients.query;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ChatQuery {

    /**
     * 用户消息
     */
    @NotBlank(message = "UserMessage could not be blank!")
    private String message;

    @NotNull(message = "UserCode could not be null!")
    private String userCode;

    @NotBlank(message = "dataSourceName could not be blank!")
    private String dataSourceName;

    private List<String> tableSelected;

    @NotBlank(message = "databaseName could not be blank!")
    private String databaseName;

    @NotBlank(message = "schemaName could not be blank!")
    private String schemaName;

}